package com.xiaoyu.lingdian.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xiaoyu.lingdian.core.mybatis.dao.MyBatisDAO;
import com.xiaoyu.lingdian.entity.CoreUserRegister;
import com.xiaoyu.lingdian.service.CoreUserRegisterService;

@Service("coreUserRegisterService")
public class CoreUserRegisterServiceImpl implements CoreUserRegisterService{

	@Autowired
	private MyBatisDAO myBatisDAO;	
	
	@Override
	public boolean insertCoreUserRegister(CoreUserRegister coreUserRegister) {
		myBatisDAO.insert(coreUserRegister);
		return true;
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<CoreUserRegister> getCoreUserRegisterByName(CoreUserRegister coreUserRegister) {
		return myBatisDAO.findForList("getCoreUserRegisterByCriglMobile", coreUserRegister);
	}

}